//
// Created by admin on 2022/10/11.
//

#import "CYEmptyView.h"
#import "CYBaseKitHelper.h"

@implementation CYEmptyView
+ (instancetype)cy_noDataEmpty {
    UIImage *image = [CYBaseKitHelper cy_module_imageWithName:@"cy_no_data_default"];
    CYEmptyView *view = [CYEmptyView emptyViewWithImage:image
                                titleStr:@"暂无数据"
                               detailStr:@""];
    view.imageSize = CGSizeMake(150, 150);
    return view;
}

+ (instancetype)cy_noDataEmptyNoAuto {
    CYEmptyView *view = [CYEmptyView cy_noDataEmpty];
    view.autoShowEmptyView = NO;
    return view;
}

+ (instancetype)cy_noNetworkEmptyWithTarget:(id)target action:(SEL)action {
    CYEmptyView *diy = [CYEmptyView emptyActionViewWithImageStr:@"cy_no_data_default"
                                             titleStr:@"暂无数据"
                                            detailStr:@"请检查你的网络连接是否正确!"
                                          btnTitleStr:@"重新加载"
                                               target:target
                                               action:action];
    diy.autoShowEmptyView = NO;

    diy.imageSize = CGSizeMake(150, 150);

    return diy;
}

+ (instancetype)cy_nCustomEmptyViewWithTarget:(id)target action:(SEL)action {
    return nil;
}


@end